package com.zbf.config;

import com.zbf.entity.TestUser;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/9/10  8:17
 * 描述:
 */
@Configuration
public class MyConfiguration {

    @Bean
    @Conditional(MyCondication.class)
    public TestUser getUser(){
       return new TestUser();
    }

}
